class Solution(object):
    def checkStraightLine(self, coordinates):
        """
        :type coordinates: List[List[int]]
        :rtype: bool
        """
        base = [coordinates[1][0] - coordinates[0][0], coordinates[1][1] - coordinates[0][1]]
        for i in range(2, len(coordinates)):
            target = [coordinates[i][0] - coordinates[0][0], coordinates[i][1] - coordinates[0][1]]
            if target[1] * base[0] != target[0] * base[1]:
                return False
        return True


data = Solution()
coordinates = [[1, 2], [2, 3], [3, 4], [4, 5], [5, 6], [6, 7]]
print(data.checkStraightLine(coordinates))
